﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace YouHP.BLL.MedicalGraph
{
    public class GraphStyle
    {
        public Pen GridPen { get; set; }


        public Font MessageFont { get; set; }
        public Brush MessageBrush { get; set; }
        public Brush MessageBoxBrush { get; set; }


        public DateTime MaxDateTime { get; set; }
        public DateTime MinDateTime { get; set; }


        public GraphStyle()
        {
            GridPen = new Pen(Color.Gray, 0.5f);
            GridPen.DashStyle = DashStyle.Dot;

            MessageFont = new Font("宋体", 9.0f);
            MessageBrush = Brushes.Black;
            MessageBoxBrush = new SolidBrush(Color.FromArgb(204, 255, 255));

        }

        public class VariableStyle
        {
            private Color mColor;

            public Brush mBrush;

            public Pen mPen;

            public Font mFont;

            public Font mFont2;

            public Pen mAxisPen;

            public void SetColor(Color color)
            {
                mColor = color;
                mFont = new Font("宋体", 12.0f);
                mFont2 = new Font("宋体", 12.0f);
                mBrush = new SolidBrush(color);
                mAxisPen = new Pen(color, 2.0f);
                mAxisPen.CustomEndCap = new AdjustableArrowCap(4, 6);
                mPen = new Pen(color, 2.0f);
            }

        }

    }

}
